package com.cloud.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.core.BaseService;
import com.cloud.dao.LableBean;
import com.cloud.dao.MyPatientBean;
import com.cloud.dao.PatientBean;
import com.cloud.dao.impl.MyPatientDao;

/**
 * 1Cloud1
 * @author Administrator
 * @since 2015-12-7
 * @version 1.0 
 */
@Service("MyPatientService")
public class MyPatientService extends BaseService{
	private static final Logger logger = LoggerFactory.getLogger(MyPatientService.class);
	
	@Autowired
	private MyPatientDao MyPatientDao;
	
	public List<PatientBean> getMyPatientList(MyPatientBean bean){
		logger.debug(String.format("开始查询医生[%s]的我的患者的信息.", bean.getDoc_id()));
		return MyPatientDao.getMyPatientList(bean);
	}
	
	public List<PatientBean> getMyPatientListByLable(LableBean bean){
		return MyPatientDao.getMyPatientListByLable(bean);
	}
	
	public void addMyPatient(MyPatientBean bean){
		MyPatientDao.addMyPatient(bean);
	}
	
	public void updateMyPatient(MyPatientBean bean){
		MyPatientDao.updateMyPatient(bean);
	}
	
	public void deletePatientFromPro(MyPatientBean bean){
		MyPatientDao.deletePatientFromPro(bean);
	}
	
	public void deleteMyPatient(MyPatientBean bean){
		MyPatientDao.deleteMyPatient(bean);
	}
	
	public Integer listCount(MyPatientBean bean){
		return MyPatientDao.listCount(bean);
	}
	
	public String getHosByPatient(PatientBean bean){
		return MyPatientDao.getHosByPatient(bean);
	}
	
	public Integer getPatientProCount(PatientBean bean){
		return MyPatientDao.getPatientProCount(bean);
	}
}
